<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kiro - 开发者智能助手</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        :root {
            --primary: #2563eb;
            --primary-light: #3b82f6;
            --secondary: #7c3aed;
            --dark: #1e293b;
            --light: #f8fafc;
        }
        
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: var(--dark);
            line-height: 1.6;
            background-color: #f8fafc;
        }
        
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
        }
        
        .hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        }
        
        .card {
            transition: all 0.3s ease;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .feature-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            margin-bottom: 1rem;
        }
        
        .mermaid {
            background: white;
            padding: 1.5rem;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        
        .dropdown:hover .dropdown-menu {
            display: block;
        }
    </style>
</head>
<body class="antialiased">
    <!-- 导航栏 -->
    <nav class="bg-white shadow-sm sticky top-0 z-50">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0 flex items-center">
                        <i class="fas fa-robot text-2xl text-blue-600 mr-2"></i>
                        <span class="text-xl font-bold text-gray-900">Kiro</span>
                    </div>
                    <div class="hidden sm:ml-6 sm:flex sm:space-x-8">
                        <a href="#features" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">功能</a>
                        <a href="#capabilities" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">能力</a>
                        <a href="#architecture" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">架构</a>
                        <a href="#usage" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">使用指南</a>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- Hero 区域 -->
    <div class="hero text-white py-20">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="lg:grid lg:grid-cols-2 lg:gap-8 items-center">
                <div>
                    <h1 class="text-4xl tracking-tight font-extrabold sm:text-5xl md:text-6xl">
                        <span class="block">Kiro</span>
                        <span class="block text-blue-200">开发者智能助手</span>
                    </h1>
                    <p class="mt-3 max-w-md mx-auto text-lg text-blue-100 sm:text-xl md:mt-5 md:max-w-3xl">
                        我是Kiro，一个为开发者打造的AI助手和IDE工具，旨在提升您的开发效率和编码体验。
                    </p>
                    <div class="mt-5 sm:mt-8 sm:flex sm:justify-center lg:justify-start">
                        <div class="rounded-md shadow">
                            <a href="#features" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-blue-700 bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10">
                                探索功能
                            </a>
                        </div>
                    </div>
                </div>
                <div class="mt-12 relative lg:mt-0">
                    <div class="relative mx-auto w-full rounded-lg shadow-lg">
                        <div class="relative bg-white p-6 rounded-lg shadow-xl">
                            <div class="flex items-start">
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center">
                                        <h3 class="text-lg font-medium text-gray-900">Kiro</h3>
                                        <span class="ml-2 px-2 py-1 text-xs font-semibold text-blue-800 bg-blue-100 rounded-full">AI助手</span>
                                    </div>
                                    <div class="mt-2 text-sm text-gray-700">
                                        <p>您好！我是Kiro，可以帮您解决什么开发问题？</p>
                                    </div>
                                    <div class="mt-4 text-sm text-gray-500">
                                        <p>10:45 AM · 7月21日 2025</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 功能亮点 -->
    <div id="features" class="py-12 bg-white">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="lg:text-center">
                <h2 class="text-base text-blue-600 font-semibold tracking-wide uppercase">特性</h2>
                <p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
                    为您量身定制的开发体验
                </p>
                <p class="mt-4 max-w-2xl text-xl text-gray-500 lg:mx-auto">
                    Kiro提供了多种强大功能，帮助开发者更高效地工作
                </p>
            </div>

            <div class="mt-10">
                <div class="space-y-10 md:space-y-0 md:grid md:grid-cols-3 md:gap-x-8 md:gap-y-10">
                    <!-- 功能1 -->
                    <div class="card relative bg-white p-6 rounded-xl">
                        <div class="feature-icon bg-blue-100 text-blue-600">
                            <i class="fas fa-brain text-2xl"></i>
                        </div>
                        <h3 class="text-lg font-medium text-gray-900 mb-2">智能代码辅助</h3>
                        <p class="text-gray-600">
                            实时代码建议、错误检测和自动修复，让您的编码过程更加流畅高效。
                        </p>
                    </div>

                    <!-- 功能2 -->
                    <div class="card relative bg-white p-6 rounded-xl">
                        <div class="feature-icon bg-purple-100 text-purple-600">
                            <i class="fas fa-project-diagram text-2xl"></i>
                        </div>
                        <h3 class="text-lg font-medium text-gray-900 mb-2">项目理解</h3>
                        <p class="text-gray-600">
                            全面理解您的代码库结构，提供基于上下文的精准建议和重构方案。
                        </p>
                    </div>

                    <!-- 功能3 -->
                    <div class="card relative bg-white p-6 rounded-xl">
                        <div class="feature-icon bg-green-100 text-green-600">
                            <i class="fas fa-terminal text-2xl"></i>
                        </div>
                        <h3 class="text-lg font-medium text-gray-900 mb-2">CLI工具集成</h3>
                        <p class="text-gray-600">
                            无缝集成命令行工具，帮助您快速执行常见开发任务和自动化流程。
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 能力展示 -->
    <div id="capabilities" class="py-12 bg-gray-50">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="lg:text-center mb-12">
                <h2 class="text-base text-blue-600 font-semibold tracking-wide uppercase">核心能力</h2>
                <p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
                    Kiro能为您做什么
                </p>
            </div>

            <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                <div class="bg-white overflow-hidden shadow rounded-lg">
                    <div class="p-6">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 bg-blue-500 rounded-md p-3">
                                <i class="fas fa-code text-white text-xl"></i>
                            </div>
                            <div class="ml-5 w-0 flex-1">
                                <h3 class="text-lg font-medium text-gray-900">代码编写与修改</h3>
                                <p class="mt-1 text-sm text-gray-500">
                                    协助编写、优化和重构代码，提高代码质量和可维护性
                                </p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="bg-white overflow-hidden shadow rounded-lg">
                    <div class="p-6">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 bg-purple-500 rounded-md p-3">
                                <i class="fas fa-bug text-white text-xl"></i>
                            </div>
                            <div class="ml-5 w-0 flex-1">
                                <h3 class="text-lg font-medium text-gray-900">问题诊断与修复</h3>
                                <p class="mt-1 text-sm text-gray-500">
                                    识别和解决代码中的错误、性能问题和潜在漏洞
                                </p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="bg-white overflow-hidden shadow rounded-lg">
                    <div class="p-6">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 bg-green-500 rounded-md p-3">
                                <i class="fas fa-cogs text-white text-xl"></i>
                            </div>
                            <div class="ml-5 w-0 flex-1">
                                <h3 class="text-lg font-medium text-gray-900">基础设施配置</h3>
                                <p class="mt-1 text-sm text-gray-500">
                                    协助设置和优化云基础设施、CI/CD流水线和开发环境
                                </p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="bg-white overflow-hidden shadow rounded-lg">
                    <div class="p-6">
                        <div class="flex items-center">
                            <div class="flex-shrink-0 bg-yellow-500 rounded-md p-3">
                                <i class="fas fa-lightbulb text-white text-xl"></i>
                            </div>
                            <div class="ml-5 w-0 flex-1">
                                <h3 class="text-lg font-medium text-gray-900">最佳实践指导</h3>
                                <p class="mt-1 text-sm text-gray-500">
                                    提供行业标准和最佳实践建议，帮助您编写更专业的代码
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 架构图 -->
    <div id="architecture" class="py-12 bg-white">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="lg:text-center mb-12">
                <h2 class="text-base text-blue-600 font-semibold tracking-wide uppercase">系统架构</h2>
                <p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
                    Kiro如何工作
                </p>
            </div>

            <div class="mermaid">
                graph TD
                    A[开发者输入] --> B(自然语言处理)
                    B --> C{意图识别}
                    C -->|代码相关| D[代码分析模块]
                    C -->|系统相关| E[系统上下文分析]
                    C -->|知识查询| F[知识库检索]
                    D --> G[代码生成/修改]
                    E --> H[环境适配]
                    F --> I[信息整合]
                    G --> J[响应生成]
                    H --> J
                    I --> J
                    J --> K[开发者反馈]
            </div>
        </div>
    </div>

    <!-- 使用指南 -->
    <div id="usage" class="py-12 bg-gray-50">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="lg:text-center mb-12">
                <h2 class="text-base text-blue-600 font-semibold tracking-wide uppercase">使用指南</h2>
                <p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
                    快速上手Kiro
                </p>
            </div>

            <div class="bg-white shadow overflow-hidden sm:rounded-lg">
                <div class="px-4 py-5 sm:px-6 border-b border-gray-200">
                    <h3 class="text-lg leading-6 font-medium text-gray-900">
                        基本交互方式
                    </h3>
                </div>
                <div class="px-4 py-5 sm:p-6">
                    <div class="space-y-4">
                        <div>
                            <h4 class="text-md font-medium text-gray-900 mb-2">1. 明确表达需求</h4>
                            <p class="text-gray-600">尽可能具体地描述您遇到的问题或需要实现的功能，例如："如何在Python中实现单例模式？"</p>
                        </div>
                        <div>
                            <h4 class="text-md font-medium text-gray-900 mb-2">2. 提供上下文</h4>
                            <p class="text-gray-600">使用#符号引用相关文件或代码片段，帮助Kiro更好地理解您的问题</p>
                        </div>
                        <div>
                            <h4 class="text-md font-medium text-gray-900 mb-2">3. 接受建议</h4>
                            <p class="text-gray-600">Kiro会提供代码修改建议或命令行操作，您可以自主决定是否采纳</p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="mt-8 bg-white shadow overflow-hidden sm:rounded-lg">
                <div class="px-4 py-5 sm:px-6 border-b border-gray-200">
                    <h3 class="text-lg leading-6 font-medium text-gray-900">
                        高级功能使用
                    </h3>
                </div>
                <div class="px-4 py-5 sm:p-6">
                    <ul class="list-disc pl-5 space-y-2">
                        <li class="text-gray-600"><span class="font-medium">Autopilot模式：</span>允许Kiro自主修改工作区文件</li>
                        <li class="text-gray-600"><span class="font-medium">Spec规范：</span>使用结构化文档指导复杂功能的开发</li>
                        <li class="text-gray-600"><span class="font-medium">Hook机制：</span>设置自动触发条件执行特定任务</li>
                        <li class="text-gray-600"><span class="font-medium">MCP协议：</span>集成外部模型服务扩展功能</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>